package com.jn.erp.web.api.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author wyp
 * @since 2024-10-15
 */
@Data
  @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
    public class TCourseOrderDetail implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      /**
     * 报名老师所属组织ID
     */
      private Long orgId;

      /**
     * 订单编号-课次
     */
      private String orderNo;

    /**
     * 订单编号-订单
     */
    private String tscOrderNo;

      /**
     * 订单类型1点名2修改点名3超上处理
     */
      private Integer type;

      /**
     * 购买总课次(全部)/退课
     */
      private Integer countLessonTotal;

      /**
     * 购买总课次(正常)/退课
     */
      private Integer countLessonTotalNormal;

      /**
     * 购买总课次(赠送)/退课
     */
      private Integer countLessonTotalGive;

    /**
     * 课消金额
     */
    private BigDecimal amount;

      /**
     * 备注
     */
      private String remark;

      /**
     * 创建时间
     */
      private LocalDateTime createDate;

      /**
     * 创建人
     */
      private String createUser;

      /**
     * 修改时间
     */
      private LocalDateTime updateDate;

      /**
     * 修改人
     */
      private String updateUser;

      /**
     * 是否删除 0否 1是
     */
      private String isDelete;

  public TCourseOrderDetail(Long orgId, String orderNo, String tscOrderNo, Integer type, Integer countLessonTotal, Integer countLessonTotalNormal, Integer countLessonTotalGive, BigDecimal amount, String remark, LocalDateTime createDate, String createUser, LocalDateTime updateDate, String updateUser, String isDelete) {
    this.orgId = orgId;
    this.orderNo = orderNo;
    this.tscOrderNo = tscOrderNo;
    this.type = type;
    this.countLessonTotal = countLessonTotal;
    this.countLessonTotalNormal = countLessonTotalNormal;
    this.countLessonTotalGive = countLessonTotalGive;
    this.amount = amount;
    this.remark = remark;
    this.createDate = createDate;
    this.createUser = createUser;
    this.updateDate = updateDate;
    this.updateUser = updateUser;
    this.isDelete = isDelete;
  }
}
